#include "singleton.hpp"
#include <iostream>

class TestSingleton : public Singleton<TestSingleton>
{
    friend class Singleton<TestSingleton>;
    // 友元类允许Singleton<TestSingleton>访问TestSingleton的私有成员和函数
private:
    TestSingleton(/* args */) = default;
    ~TestSingleton() = default;
public:
    void doSomeThing(){
        std::cout<<"hello world"<<std::endl;
    }
};





int main()
{
    INSTANCE(TestSingleton).doSomeThing();
}